//
//  TSellThingsListCell.m
//  LoveShare
//
//  Created by ways on 2017/5/2.
//  Copyright © 2017年 tikeyc. All rights reserved.
//

#import "TSellThingsListCell.h"
#import "SPKitExample.h"

@interface TSellThingsListCell ()

- (IBAction)sendIMButtonAction:(UIButton *)sender;


@end

@implementation TSellThingsListCell


+ (instancetype)loadFromNib {
    TSellThingsListCell *cell = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:NULL] lastObject];
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)sendIMButtonAction:(UIButton *)sender {
    YWPerson *person = [[YWPerson alloc] initWithPersonId:@"visitor861"];
    [[SPKitExample sharedInstance] exampleOpenConversationViewControllerWithPerson:person fromNavigationController:self.viewController.navigationController];
}
@end
